home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2112 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.7 KB  |  38 lines

  1. Newsgroups: comp.lang.c++,comp.protocols.tcp-ip
  2. Path: in2.uu.net!etnibsd!sandeep
  3. From: sandeep@etnibsd.uucp (Sandeep Pathak)
  4. Subject: Socket classes and fork()
  5. Message-ID: <1996Jan15.192235.21245@etnibsd.uucp>
  6. Keywords: sockets, C++, fork
  7. Reply-To: sandeep%etnibsd@uunet.uu.net
  8. Organization: Eaton Ion Beam Systems Div., Beverly, MA
  9. Date: Mon, 15 Jan 1996 19:22:35 GMT
  10.  
  11. Hi netters,
  12. My apologies if this is a repost. I wasnt sure my first posting went thru.
  13. I am writing simple C++ classes/wrappers for sockets and related 
  14. networking abstractions. I have modeled my classes mostly on the 
  15. traditional structures and function calls, but I got stumped by "fork()". 
  16. My Socket class also has a reference count similar to that maintained 
  17. by the kernel for a socket descriptor. But how do I maintain this count
  18. if a fork() is done? I can not think of anyway of maintaining 
  19. consistency w/ the kernel count unless there is some parent <-> child 
  20. IPC for the Socket object. Anybody want to share some experiences?..
  21. I am sure there are a lot of people who have written/dealt w/ C++ 
  22. wrappers for IPC and networking.
  23. At this point (without some research) I would lamely contend that my 
  24. Socket abstraction will not be in a proper state if concurrent servers 
  25. are written w/ it.
  26. Please prove me wrong..!
  27.  
  28. thanks in advance!
  29. -sandeep
  30. spathak@bev.etn.com
  31. -----------------------------------------------------------------
  32. Sandeep Pathak                  ! secs:  (508)921-9696 
  33. Eaton Corporation               ! mins:  (508)927-3652
  34. Semiconductor Equipment Div.    ! hrs :  spathak@bev.etn.com
  35. "Whatever u can do or dream u   ! days:     108 Cherry Hill Drive
  36. can do..begin it" -- Goethe     !        Beverly  MA 01915
  37. -----------------------------------------------------------------
  38.